package xkp.lesson2;

public class Circle {
	//fina修饰的是成员变量,该成员变量变为成员常量
	
	private final double PI = 3.14;
	
	public void fun1() {
		//PI = 314;
		final int num = 100;
		//num = 200;
		
		//被final修饰的变量只能被赋值一次
		final int num2;
		num2 = 222;
		//num2 = 333;
		
		//局部变量必须初始化后才能使用
		int a = 200;
		
		System.out.println(a);
	}
	
	public void fun2(final int num) {
		int age = num;
		//num = 200;
	}

}
